<template>
  <nav class="navbar">
    <div class="container">
      <div class="logo">
        <img src="../../assets/logo_128.png" alt="Logo">
        <span>XiusCraft</span>
      </div>
      <div class="nav-links">
        <a href="#" v-scroll-to="'#features'">Features</a>
        <a href="#" v-scroll-to="'#stats'">Stats</a>
        <router-link to="/login" class="login-btn">Login</router-link>
        <router-link to="/register" class="register-btn">Register</router-link>
      </div>
    </div>
  </nav>
</template>

<style scoped>
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(68, 170, 255, 0.3);
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #44aaff, #8844ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: #44aaff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #44aaff;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.login-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #44aaff, #8844ff);
  color: #0a0a0a;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(68, 170, 255, 0.3);
}
</style>